runtime.activeSweep.state (field)
11 uses
runtime (current package)
mgc.go#L179: sweep.active.state.Store(sweepDrainedMask)
mgcsweep.go#L138: state atomic.Uint32
mgcsweep.go#L153: state := a.state.Load()
mgcsweep.go#L157: if a.state.CompareAndSwap(state, state+1) {
mgcsweep.go#L170: state := a.state.Load()
mgcsweep.go#L174: if a.state.CompareAndSwap(state, state-1) {
mgcsweep.go#L195: state := a.state.Load()
mgcsweep.go#L199: if a.state.CompareAndSwap(state, state|sweepDrainedMask) {
mgcsweep.go#L207: return a.state.Load() &^ sweepDrainedMask
mgcsweep.go#L214: return a.state.Load() == sweepDrainedMask
mgcsweep.go#L222: a.state.Store(0)
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |